// compotents/dialog/index/index.js
Component({

  /**
   * 组件的属性列表
   */
  properties: {
    isShow: {
      type: Boolean,
      value: false
    },
    btn1Text: {
      type: String,
      value: ''
    },
    btn2Text: {
      type: String,
      value: ''
    },
    hideClose: {
      type: Boolean,
      value: false
    }
  },

  /**
   * 组件的初始数据
   */
  data: {
    imgUri: getApp().globalData.imgUri,
  },

  /**
   * 组件的方法列表
   */
  methods: {
    close() {
      this.triggerEvent('close');
    },
    onFx1() {
      console.log(1);
      this.triggerEvent('fx1');
    },
    onFx2() {
      this.triggerEvent('fx2');
    },

  }
})